package cn.lanqiao.ui;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.Window.Type;
import java.awt.Toolkit;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import java.awt.Color;

public class PassFrmUser extends JFrame {

	private JPanel contentPane;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					PassFrmUser frame = new PassFrmUser();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public PassFrmUser() {
		setTitle("修改密码/用户");
		setResizable(false);
		setIconImage(Toolkit.getDefaultToolkit().getImage(PassFrmUser.class.getResource("/cn/lanqiao/img/logo.png")));
		setType(Type.UTILITY);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 261, 151);
		contentPane = new JPanel();
		contentPane.setBackground(Color.WHITE);
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel label = new JLabel("新密码");
		label.setFont(new Font("微软雅黑", Font.PLAIN, 12));
		label.setBounds(24, 30, 54, 15);
		contentPane.add(label);
		
		textField = new JTextField();
		textField.setColumns(10);
		textField.setBounds(68, 27, 167, 21);
		contentPane.add(textField);
		
		JButton button = new JButton("New button");
		button.setIcon(new ImageIcon(PassFrmUser.class.getResource("/cn/lanqiao/img/yesAn.png")));
		button.setBounds(24, 76, 211, 36);
		contentPane.add(button);
	}
}
